<?php

class Config extends Functions{
    #code
    public $page_author;
    public $page_title;
    public $page_keyword;
    public $page_description;
    
    public function __construct($value){
        $this->page_author = $value;
        $this->page_title = $value;
    }
    
    public function page_author(){
        return $this->page_author = "Samuel G. Pulta";
    }
    
    public function page_title(){
        return $this->page_title = "Formalistics";
    }
    
    public function page_keyword(){
        return $this->page_keyword = "Formalistics, Formbuilder, Forms, Workflow, Organizationl Chart";
    }
    
    public function page_description(){
        return $this->page_description = "FORMALISTICS is a software platform that makes possible creation of software systems based on electronic forms and process / approval flows.";
    }
    
    public function get_page(){
        $page_name = Layout::getParams();
        $count_param = count($page_name);
        if($count_param=="0"){
            return self::page_title();
        }elseif($page_name[1] == "home" || $page_name[0] == ""){
            return self::page_title();
        }else{
            $name = $page_name[$count_param-1];
            $str_replace_page_name = str_replace('_',' ',$name);
            $str_name = str_replace('-',' ',$str_replace_page_name);
            $web_page_name = ucwords($str_name);
            return $web_page_name;
        }
    }
}




?>